package com.mapper;

import com.entity.Customer;
import com.entity.Employrecord;
import com.entity.EmployrecordExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface EmployrecordMapper {
    long countByExample(EmployrecordExample example);

    int deleteByExample(EmployrecordExample example);

    int deleteByPrimaryKey(String erid);

    int insert(Employrecord record);

    int insertSelective(Employrecord record);

    List<Employrecord> selectByExample(EmployrecordExample example);

    List<Employrecord> selectByExampleWithDietitian(EmployrecordExample example);

    List<Employrecord> selectEmployrecordsByCidWithTop2Plainrecord(String cid);

    Employrecord selectByPrimaryKey(String erid);

    Employrecord selectEmployrecordsByCidWithDietitian(String cid);

    List<Employrecord> getAll();

    List<Employrecord> getEmployrecordsByPage(Map<String,Object> map);

    int updateByExampleSelective(@Param("record") Employrecord record, @Param("example") EmployrecordExample example);

    int updateByExample(@Param("record") Employrecord record, @Param("example") EmployrecordExample example);

    int updateByPrimaryKeySelective(Employrecord record);

    int updateByPrimaryKey(Employrecord record);
}